#!/bin/sh
rm $1.out
cat $1 | while read HOST NAME REST
do
  if [ "$HOST" = "host" ]; then
    echo "$HOST $REST" >> $1.out
  fi
done
sort $1.out > $1.sort
